package com.insta.java.common;

import javax.xml.ws.Endpoint;

import com.insta.java.webservice.UserService;

@SuppressWarnings("restriction")
public class UserServicePublisher {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		UserService obj= new UserService();
		Endpoint endpoint = Endpoint.publish("http://localhost:8888/userService", obj);
		boolean status = endpoint.isPublished();
		System.out.println("Web service disponible? "+status);

	}

}
